<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'agents')) ?>
<?php $this->end(); ?>
<div class="credits view">
	<h1><?php  echo __('Credit'); ?></h1>
	<table class='form-table'>
		<tr>
			<td class='left-cl-style'>Card ID</td>
			<td class='right-cl-style'><?php echo h($credit['Credit']['card_id']); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Name</td>
			<td class='right-cl-style'><?php echo h($credit['Credit']['name']); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Expire date</td>
			<td class='right-cl-style'><?php echo h($credit['Credit']['expire_date']); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Agent</td>
			<td class='right-cl-style'><?php echo $this->Html->link($credit['Agent']['name'], array('controller' => 'agents', 'action' => 'view', $credit['Agent']['id'])); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style no-border no-background'>
				(<span class='red-star'>*</span>) Required
			</td>
			<td class='right-cl-style actions no-border no-background'>
				<?php echo $this->Form->input('Submit', array('type' => 'submit', 'label' => false)); ?>
			</td>
		</tr>
	</table>
</div>
	
<div class='actionct'>
	<span class='btn-act'>
			<span><?php echo $this->Html->link(__('List Credits'), array('action' => 'index'), array('class' => 'back-act')); ?></span>
	</span>
	<span class='btn-act'>
			<span>
				<?php echo $this->Form->postLink(__('Delete Credit'), array('action' => 'delete', $credit['Credit']['id']), array('class' => 'del-link'), __('Are you sure you want to delete # %s?', $credit['Credit']['id'])); ?>				 
			</span>
	</span>
	<span class='btn-act'>
			<span>
				<?php echo $this->Html->link(__('Edit Credit'), array('action' => 'edit', $credit['Credit']['id']), array('class' => 'edit-link')); ?> 
			</span>
	</span>
	<span class='btn-act'>
			<span>
				<?php echo $this->Html->link(__('New Credit'), array('action' => 'add')); ?>
			</span>
	</span>
</div>
